//
// Created by wkm on 2023-12-03.
//

#include "drive_bank_noff.h"

#include "drive_bank_noff.h"

void drive_bank_noff::z_logic() {
    sc_lv<BUS_SIZE> temp(SC_LOGIC_Z);

    if (read_state)
        main_bus = temp;
    else
        main_bus = saved_value.read();
}

void drive_bank_noff::ff_logic() {
    saved_value = cpu_bus.read();
}